function modalOpen(id,callBackFunction) {
    $('#' + id + '').on('show.bs.modal', function () {
        if (isNotNull(callBackFunction)) {
            callBackFunction();
        }
    });
}

function modalClose(id, callBackFunction) {
    $('#' + id + '').on('hidden.bs.modal', function () {
        if (isNotNull(callBackFunction)) {
            callBackFunction();
        }
    });
}